var limsInstrumentAcqConfig = Gikam.getPageObject({

    getEditListColumns : function() {
        return [ {
            checkbox : true
        }, {
            field : 'instrumentCode',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.INSTRUMENTCODE'
        }, {
            field : 'instrumentName',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.INSTRUMENTNAME'
        }, {
            field : 'instrumentType',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.INSTRUMENTTYPE',
            type : 'select',
            category : 'sys',
            param : {
                codeCategoryId : 'eqClass'
            }
        }, {
            field : 'acqType',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.ACQTYPE',
            type : 'select',
            category : 'sys',
            param : {
                codeCategoryId : 'acqType'
            }
        } ];
    },

    getBaseInfoFormFields : function() {
        return [ {
            field : 'instrumentCode',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.INSTRUMENTCODE',
            validators : [ 'strLength[0,60]' ],
            preInsert : true
        }, {
            field : 'instrumentName',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.INSTRUMENTNAME',
            validators : [ 'strLength[0,120]' ],
            preInsert : true
        }, {
            field : 'instrumentType',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.INSTRUMENTTYPE',
            type : 'select',
            category : 'sys',
            param : {
                codeCategoryId : 'eqClass'
            },
            validators : [ 'strLength[0,36]' ],
            preInsert : true
        }, {
            field : 'acqType',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.ACQTYPE',
            type : 'select',
            category : 'sys',
            param : {
                codeCategoryId : 'acqType'
            },
            validators : [ 'strLength[0,36]' ]
        }, {
            field : 'userName',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.USERNAME',
            validators : [ 'strLength[0,36]' ]
        }, {
            field : 'password',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.PASSWORD',
            validators : [ 'strLength[0,36]' ]
        }, {
            field : 'collectionPath',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.COLLECTIONPATH',
            validators : [ 'strLength[0,100]' ]
        }, {
            field : 'savePath',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.SAVEPATH',
            validators : [ 'strLength[0,100]' ]
        }, {
            field : 'ip',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.IP',
            validators : [ 'strLength[0,36]' ]
        }, {
            field : 'port',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.PORT',
            validators : [ 'strLength[0,36]' ]
        }, {
            field : 'readingMode',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.READINGMODE',
            type : 'select',
            category : 'sys',
            param : {
                codeCategoryId : 'readingMode'
            },
            validators : [ 'strLength[0,36]' ]
        }, {
            field : 'driverClassName',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.DRIVERCLASSNAME',
            validators : [ 'strLength[0,60]' ]
        }, {
            field : 'url',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.URL',
            validators : [ 'strLength[0,120]' ]
        }, {
            field : 'dbUserName',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.DBUSERNAME',
            validators : [ 'strLength[0,36]' ]
        }, {
            field : 'dbPassword',
            title : 'T_LIMS_INSTRUMENT_ACQ_CONFIG.DBPASSWORD',
            validators : [ 'strLength[0,36]' ]
        } ];
    },

    baseUrl : IFM_CONTEXT + '/secure/basemodule/trm/equipt/instrument-acq-configs'
});
